import request from "../request"



function register(data) {
  return request({
    url: "/wx/liteDev/register",
    data
  })
}

function doLogin(data) {
  return request({
    url: "/admin/xy/lite/student/doLogin",
    data
  })
}


// 占入学
function orderRu(data) {
  return request({
    method: "POST",
    url: "/admin/xy/lite/student/orderRu",
    data,
    header: {
      // 传递的自定义请求头
      "bufan-token": 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJidWZhbmp1biIsImV4cCI6MTYwNjMxMDA0NywidXNlck5hbWUiOiJhZG1pbiIsImlhdCI6MTYwNjMwNjQ0N30.bY8I4uuPGo3SleEAs6fL3MOXvpHvxTMqEnFzMUW7dvc'
    }
  })
}
//占座
function orderZhan(data) {
  return request({
    method: "POST",
    url: "/admin/xy/lite/student/orderZhan",
    data,
    header: {
      // 传递的自定义请求头
      "bufan-token": 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJidWZhbmp1biIsImV4cCI6MTYwNjMxMDA0NywidXNlck5hbWUiOiJhZG1pbiIsImlhdCI6MTYwNjMwNjQ0N30.bY8I4uuPGo3SleEAs6fL3MOXvpHvxTMqEnFzMUW7dvc'
    }
  })
}


function getUserStatus(data) {
  return request({
    url: "/admin/xy/lite/student/getUserStatus",
    data
  })
}

// 后端登录
function admindoLogin(data) {
  return request({
    method: "POST",
    url: "/admin/login/doLogin",
    data
  })
}

// 后端登录
function confirmZhan(data) {
  return request({
    url: "/admin/xy/student/confirmZhan",
    data,
    header: {
      // 传递的自定义请求头
      "bufan-token": wx.getStorageSync('bufan-token')
    }
  })
}


// 后端登录
function del(data) {
  return request({
    url: "/admin/xy/lite/student/del",
    data,
  })
}

// 获取用于信息
function detail(data) {
  return request({
    url: "/admin/xy/lite/student/detail",
    data,
  })
}

// 获取用于信息
function confirmRu(data) {
  return request({
    url: "/admin/xy/student/confirmRu",
    data,
  })
}




export {
  doLogin,
  register,
  orderRu,
  orderZhan,
  getUserStatus,
  admindoLogin,
  confirmZhan,
  del,
  detail,
  confirmRu
}